import request from '@/utils/request.js'


const productApi = {
    list(productQuery) {
        return request.get('/product/list',{params: productQuery})
    },
    add(product){
        return request.post(`/product/add`,product)
    },
    getById(id){
        return request.get(`product/getById/${id}`)
    },
    update(product){
        return request.put(`product/update`,product)
    }
}

export default productApi